import java.util.Random;
import java.util.Scanner;

public class Test{
    public static void main55(String[] args) {
        int y = 0;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            y = scanner.nextInt();
            if(y < 18) {
                System.out.println("少年");
            } else if (y <= 28) {
                System.out.println("青年");
            } else if (y <= 55) {
                System.out.println("中年");
            } else {
                System.out.println("老年");
            }
        }
    }
    public static void main66(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int flag = 1;
        for (int j = 2; j <= i / 2; j++) {
            if(i % j == 0) {
                flag = 0;
                break;
            }
        }
        if(flag == 1) {
            System.out.println(i + "是素数");
        } else {
            System.out.println(i + "不是素数");
        }
    }
    public static void main111(String[] args) {
        for (int i = 1; i <= 100 ; i++) {
            int flag = 1;
            for (int j = 2; j <= i / 2; j++) {
                if(i % j == 0) {
                    flag = 0;
                    break;
                }
            }
            if(flag == 1) {
                System.out.print(i + " ");
            }
        }
    }
    public static void main87(String[] args) {
        int i = 0;
        int count = 1;
        for (i = 1000; i <= 2000; i++) {
            if((i % 4 == 0 && i % 100 != 0) || (i % 400 == 0)) {
                System.out.print(i + " ");
                if(count == 15) {
                    System.out.println();
                    count -= 15;
                }
                count++;
            }
        }
    }
    public static void mai9n(String[] args) {
        int i = 1;
        int count = 0;
        for(i = 1; i <= 100; i++) {
            int tmp = i;
            while(tmp != 0) {
                if(tmp % 10 == 9) {
                    count++;
                }
                tmp /= 10;
            }
        }
        System.out.println(count);
    }
    public static void main99(String[] args) {
        Random random = new Random();
        Scanner scanner = new Scanner(System.in);
        int t = random.nextInt(100);
        System.out.println(t);

        while(true) {
            int k = scanner.nextInt();
            if(k < t) {
                System.out.println("猜小了");
            } else if (k > t) {
                System.out.println("猜大了");
            } else {
                System.out.println("猜对了");
                break;
            }
        }
    }
    public void conversion(int num, int type) {
        String arr = "!!!!!!!!!!!!!!";

        while(num != 0) {

            num /= type;
        }
    }

    public static void print(int n, int type) {
        if(n / type != 0) {
            print(n / type, type);
        }
        char[] arr = {'a', 'b', 'c', 'd', 'e', 'f'};
        if(n % type < 10) {
            System.out.print(n % type);
        } else {
            System.out.println(arr[n % type - 10]);
        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()) {
            String arr = scanner.nextLine();
            int num = Integer.valueOf(arr);
            if(10000 <= num && num <= 20000) {
                print(num, 2);
            } else {
                num = num > 0 ? num : -num;
                int k = num;
                num = 0;
                while(k != 0) {
                    num = k % 10 + num * 10;
                    k /= 10;
                }
                int ret = 0;
                while(num != 0) {
                    System.out.print(num % 10 + " ");
                    ret += num % 10;
                    num /= 10;
                }
                System.out.println(ret);
            }
        }
    }
    public static void main10(String[] args) {
        Scanner s1 = new Scanner(System.in);
        while(s1.hasNextInt()) {
            int a = s1.nextInt();
            int b = s1.nextInt();
            if(a > 1000 || -a > 1000) {
                System.out.println("|a|>1000");
            } else {
                System.out.println(a+b);
            }
        }
    }
    public static void mai1n(String[] args) {
        int sum = 0;
        Scanner scanner = new Scanner(System.in);

        while(scanner.hasNext()) {
            int k = scanner.nextInt();
            sum += k;
        }
        System.out.println(sum);
    }
    public static void main9(String[] args) {
        Scanner s = new Scanner(System.in);
        String name = new Scanner(System.in).nextLine();
        System.out.println(name);
        int age = s.nextInt();
        System.out.println(age);
    }
    public static void main8(String[] args) {
        int k = 0;
        while(k < 100) {
            k++;
            if(k % 5 == 0 && k % 3 == 0) {
                System.out.println(k);
                continue;
            }
        }
    }
    public static void main7(String[] args) {
        int a = 100;
        while(a <= 200) {
            if(a % 3 == 0) {
                System.out.println(a);
                break;
            }
            a++;
        }
    }
    public static void main6(String[] args) {
        int k = 1;
        int p = 1;
        while(k <= 5) {
            p *= k;
            k++;
        }
        System.out.println(p);
        k = 1;
        p = 1;
        int sum = 0;
        while(k <= 5) {
            p *= k;
            sum += p;
            k++;
        }
        System.out.println(sum);
    }
    public static void main5(String[] args) {
        int a = 1;
        int sum = 0;
        while(a <= 100) {
            sum += a;
            a++;
        }
        System.out.println(sum);
    }
    public static void main4(String[] args) {
//        int k = 0;
//        while(k < 10) {
//            System.out.println(k);
//            k++;
//        }
        int a = 0;
        for (a = 0; a < 10; a++) {
            System.out.println(a);
        }
    }
    public  static void main3(String[] args) {
        int k = 2;
        switch (k) {
            case 1:
                System.out.println(1);
                break;
            default:
                System.out.println(333);
                break;
            case 2:
                System.out.println(2);
                break;
        }
    }
    public static void main2(String[] args) {
//        int a = 2;
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        if(a % 2 == 1) {
            System.out.println("奇数");
        } else {
            System.out.println("偶数");
        }
    }
    public static void main1(String[] args) {
        int a = 1;
        if(a == 1) {
            System.out.println(111);
            System.out.println(222);
        }
    }
}